package model

import (
	"gorm.io/gorm"
	"time"
)

type ArticleLike struct {
	Id        int            `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	ArticleId int            `gorm:"column:article_id;type:bigint(20) UNSIGNED;comment:动态id;not null;" json:"article_id"`                      // 动态id
	Deleted   gorm.DeletedAt `gorm:"column:deleted;type:datetime(3);comment:删除时间;default:NULL;" json:"deleted"`                                // 删除时间
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);comment:创建时间;not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"` // 创建时间
}

func (ArticleLike) TableName() string {
	return "article_like"
}
